﻿@model Leo.Entities.Laboratorio
@{
    var ajaxoption = new AjaxOptions()
    {
        Url = Url.Action("Edit"),
        OnSuccess = "OnSuccessUpdate"
    };
}

<div id="dialogEdit" title="@Model.nombre_lab">
    @using (Ajax.BeginForm(null,null,
                            ajaxoption,
                            new{id="frmEdit",name="frmEdit"}
                            ))
 {
     @Html.ValidationSummary(true)

        <fieldset>
            <legend>Laboratorio</legend>
            <div class="editor-label">
                @Html.LabelFor(model=>model.nombre_lab)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model=>model.nombre_lab)
                @Html.ValidationMessageFor(model=>model.nombre_lab)
            </div>

            <div class="editor-label">
                @Html.LabelFor(model=>model.comentario)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model=>model.comentario)
                @Html.ValidationMessageFor(model=>model.comentario)
            </div>
        </fieldset>
 }
</div>
